package vista;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class OptionsWindow extends javax.swing.JFrame {
	private JLabel labelNomeRobo;
	private JTextField campoNomeRobo;
	private JLabel labelAnguloInicial;
	private JTextField campoAnguloInicial;
	private JTextField campoPosicaoYInicial;
	private JLabel labelPosicaoYInicial;
	private JPanel painelPosicaoYInicial;
	private JTextField campoPosicaoXInicial;
	private JLabel labelPosicaoXInicial;
	private JPanel painelPosicaoXInicial;
	private JPanel painelAnguloInicial;
	private JButton botaoSalvar;
	private JPanel painelNomeDados;

	public OptionsWindow() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			GridBagLayout thisLayout = new GridBagLayout();
			thisLayout.rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.1, 0.0, 0.0};
			thisLayout.rowHeights = new int[] {15, 10, 10, 10, 7, 15, 6};
			thisLayout.columnWeights = new double[] {0.0, 0.1, 0.0};
			thisLayout.columnWidths = new int[] {6, 7, 6};
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(thisLayout);
			{
				painelNomeDados = new JPanel();
				BoxLayout painelDadosLayout = new BoxLayout(painelNomeDados, javax.swing.BoxLayout.X_AXIS);
				painelNomeDados.setLayout(painelDadosLayout);
				getContentPane().add(painelNomeDados, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				{
					labelNomeRobo = new JLabel();
					painelNomeDados.add(labelNomeRobo);
					labelNomeRobo.setText("Nome do Robô");
				}
				{
					campoNomeRobo = new JTextField();
					painelNomeDados.add(campoNomeRobo);
				}
			}
			{
				botaoSalvar = new JButton();
				getContentPane().add(botaoSalvar, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
				botaoSalvar.setText("Salvar");
			}
			{
				painelAnguloInicial = new JPanel();
				BoxLayout painelAnguloInicialLayout = new BoxLayout(painelAnguloInicial, javax.swing.BoxLayout.X_AXIS);
				painelAnguloInicial.setLayout(painelAnguloInicialLayout);
				getContentPane().add(painelAnguloInicial, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				{
					labelAnguloInicial = new JLabel();
					painelAnguloInicial.add(labelAnguloInicial);
					labelAnguloInicial.setText("Angulo Inicial");
				}
				{
					campoAnguloInicial = new JTextField();
					painelAnguloInicial.add(campoAnguloInicial);
				}
			}
			{
				painelPosicaoXInicial = new JPanel();
				BoxLayout painelPosicaoXInicialLayout = new BoxLayout(painelPosicaoXInicial, javax.swing.BoxLayout.X_AXIS);
				getContentPane().add(painelPosicaoXInicial, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				painelPosicaoXInicial.setLayout(painelPosicaoXInicialLayout);
				{
					labelPosicaoXInicial = new JLabel();
					painelPosicaoXInicial.add(labelPosicaoXInicial);
					labelPosicaoXInicial.setText("Posição X (Inicial)");
				}
				{
					campoPosicaoXInicial = new JTextField();
					painelPosicaoXInicial.add(campoPosicaoXInicial);
				}
			}
			{
				painelPosicaoYInicial = new JPanel();
				BoxLayout painelPosicaoYInicialLayout = new BoxLayout(painelPosicaoYInicial, javax.swing.BoxLayout.X_AXIS);
				getContentPane().add(painelPosicaoYInicial, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
				painelPosicaoYInicial.setLayout(painelPosicaoYInicialLayout);
				{
					labelPosicaoYInicial = new JLabel();
					painelPosicaoYInicial.add(labelPosicaoYInicial);
					labelPosicaoYInicial.setText("Posição Y (Inicial)");
				}
				{
					campoPosicaoYInicial = new JTextField();
					painelPosicaoYInicial.add(campoPosicaoYInicial);
				}
			}
			pack();
			this.setSize(292, 147);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public JButton getSaveButton() {
		return botaoSalvar;
	}
	
	public JTextField getCampoNomeRobo() {
		return campoNomeRobo;
	}

	public JTextField getCampoAnguloInicial() {
		return campoAnguloInicial;
	}

	public JTextField getCampoPosicaoYInicial() {
		return campoPosicaoYInicial;
	}

	public JTextField getCampoPosicaoXInicial() {
		return campoPosicaoXInicial;
	}

}
